<template>
  <div>
    <el-dialog
      title="新建退换货"
      :visible.sync="dialogshow"
      :before-close="dialogClose"
      style="display: none"
      top="10vh"
      width="90%"
      :fullscreen="fullscreen"
    >
      <dialog-tools
        v-bind:back="true"
        v-bind:next="true"
        v-bind:goback="true"
        v-bind:prev="true"
        v-bind:screen="true"
        @clickfullscreen="clickfullscreen"
      >
      </dialog-tools>
      <el-tabs
        class="tabs-table customer-tabs"
        type="border-card"
        v-model="activeName"
      >
        <el-tab-pane label="基本信息" name="first">
          <el-form
            id="form-returns"
            size="mini"
            :model="formData"
            label-width="100px"
          >
            <el-row class="item-w230">
              <el-form-item label="客户名称">
                <el-input
                  v-model="customer.customercode"
                  auto-complete="off"
                  @click.native="handleButtons(2)"
                  :required="true"
                ></el-input>
              </el-form-item>

              <el-form-item label="客户代码" prop="customercate">
                <el-input
                  v-model="customer.bankaccount"
                  auto-complete="off"
                ></el-input>
              </el-form-item>

              <el-form-item label="申请人" prop="creditrank">
                <el-input
                  v-model="customer.certificateno"
                  auto-complete="off"
                  :required="true"
                ></el-input>
              </el-form-item>
              <el-form-item label="退换货原因">
                <el-select
                  v-model="customer.thhyy"
                  filterable
                  style="width: 100%"
                  :required="true"
                >
                  <el-option
                    v-for="item in thhyy"
                    :label="item.typename"
                    :key="item.id"
                    :value="item.typename"
                  ></el-option>
                </el-select>
              </el-form-item>

              <el-form-item label="申请时间" prop="field101">
                <el-date-picker
                  v-model="formData.datetime"
                  type="datetime"
                  placeholder="申请时间"
                  style="width:100%"
                  clearable
                ></el-date-picker>
              </el-form-item>

              <!-- <el-form-item label="定价日期" prop="field101">
              <el-date-picker
                v-model="formData.field101"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd"
                :style="{ width: '100%' }"
                placeholder="定价日期"
                clearable
              ></el-date-picker>
            </el-form-item> -->

              <!-- <el-form-item label="结料方式">
                <el-select
                  v-model="customer.creditrank"
                  filterable
                  style="width: 100%"
                >
                  <el-option
                    v-for="item in crmsclientStatic"
                    :label="item.typename"
                    :key="item.id"
                    :value="item.typename"
                  ></el-option>
                </el-select>
              </el-form-item> -->
             </el-row><el-row class="item-w230">
              <el-form-item label="退货收货地址">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="退货物流单号">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="退货物流费用">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              </el-row><el-row class="item-w230" style="height:34px;">

<el-form-item label="是否换货" prop="field3000">
                  <el-checkbox label="是" v-model="formData.field3000"></el-checkbox>
              </el-form-item>
<span v-if="formData.field3000">
              <el-form-item label="换货收货地址">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="换货物流单号">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                  
                ></el-input>
              </el-form-item>
              <el-form-item label="换货物流费用">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                  
                ></el-input>
              </el-form-item>
</span>

              </el-row><el-row class="item-w230">
                
              <el-form-item label="应退款" 
              v-if="!formData.field3000"
              >
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                  style="color:red"
                ></el-input>
              </el-form-item>
              <el-form-item label="应补差价"  v-if="formData.field3000">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                  style="color:red"
                 
                ></el-input>
              </el-form-item>
              <el-form-item label="结款方式">
                <el-select
                  v-model="customer.jsfs"
                  filterable
                  style="width: 100%"
                >
                  <el-option
                    v-for="item in jsfs"
                    :label="item.typename"
                    :key="item.id"
                    :value="item.typename"
                  ></el-option>
                </el-select>
              </el-form-item>
<el-form-item label="汇率">
                <el-input
                  v-model="customer.bank"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="币种">
                <el-input
                  v-model="customer.bank"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
 </el-row><el-row class="item-w230">

            </el-row><el-row class="item-w230">
              <el-form-item label="审核状态">
                <el-select
                  v-model="customer.creditrank"
                  filterable
                >
                  <el-option
                    v-for="item in shzt"
                    :label="item.typename"
                    :key="item.id"
                    :value="item.typename"
                  ></el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="审核人">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                ></el-input>
              </el-form-item>
              <el-form-item label="审核时间">
<el-date-picker
                  v-model="formData.datetime"
                  type="datetime"
                  style="width:100%"
                  placeholder="审核时间"
                  clearable
                ></el-date-picker>
              </el-form-item>
              <el-form-item label="客户审核">
                <el-select
                  v-model="customer.kfsh"
                  filterable
                >
                  <el-option
                    v-for="item in shzt"
                    :label="item.typename"
                    :key="item.id"
                    :value="item.typename"
                  ></el-option>
                </el-select>
              </el-form-item>
              
            </el-row>
            <el-row>
              <el-form-item label="备注">
                <el-input
                  v-model="customer.address"
                  auto-complete="off"
                  type="textarea"
                  style="width: 100%"
                ></el-input>
              </el-form-item>
            </el-row>
          </el-form>
          <el-row style="margin-bottom: 5px"
            >退货列表
            <el-button
              style="float: right; margin-left: 15px"
              type="primary"
              @click="handleButtons(3)"
              icon="el-icon-plus"
              size="small"
              >添加</el-button
            ></el-row
          >
          <el-table
            ref="multipleTable"
            stripe
            :data="tableDataTh"
            :show-summary="true"
            border
            row-class-name="tableRow"
            header-row-class-name="tableHeader"
            :highlight-current-row="true"
            @row-dblclick="handleButtons(22)"
            style="width: 100%; height:auto;border-top: 1px solid #c5c5c5"
          >
            <el-table-column type="selection" width="55"> </el-table-column>
            <el-table-column prop="id" label="序号" sortable width="80">
            </el-table-column>
            <el-table-column prop="image" label="图片" width="120">
              <template scope="scope">
                <img
                  :src="scope.row.image"
                  width="40"
                  height="40"
                  class="head_pic"
                />
              </template>
            </el-table-column>
            <el-table-column prop="wpmc" label="物品名称" width="120">
            </el-table-column>
            <!-- <el-table-column prop="wppl" label="物品品类" sortable width="120">
            </el-table-column> -->
            <el-table-column prop="order_id" label="订单号" width="120">
            </el-table-column>
            <el-table-column prop="kh" label="款号" width="120">
            </el-table-column>
            <el-table-column prop="number" label="数量" width="120">
            </el-table-column>
            <el-table-column prop="hz" label="货重" width="120">
            </el-table-column>
            <el-table-column prop="gjspl" label="贵金属"> </el-table-column>
            <el-table-column prop="zs" label="主石" width="120">
            </el-table-column>
            <el-table-column prop="fs" label="副石" width="120">
            </el-table-column>
            <el-table-column prop="bzh" label="包装盒" width="120">
            </el-table-column>
            <el-table-column prop="zs" label="证书" width="120">
            </el-table-column>
            <el-table-column prop="price" fixed="right" label="原价(元)"> </el-table-column>

            <el-table-column prop="pricecj" fixed="right" label="扣除费用"> 

                    <template slot-scope="scope">
          <el-popover trigger="hover" placement="top">
            <p>证书遗失费: {{ scope.row.zsysf }}</p>
            <p>包装盒遗失费: {{ scope.row.bzhysf }}</p>
            <p>维修费: {{ scope.row.wxf }}</p>
            <div slot="reference" class="name-wrapper">
              <el-button type="text" >{{ scope.row.pricebcj }}</el-button>
            </div>
          </el-popover>
        </template>

            </el-table-column>
            <el-table-column prop="pricejs" fixed="right" label="应退金额"> </el-table-column>
            <el-table-column width="140"  fixed="right">
              
              <template slot="header">
                <el-tooltip content="删除选中" placement="bottom">
                  <el-button
                    @click="dialogAdd"
                    type="danger"
                    icon="el-icon-delete"
                    size="mini"
                    style="margin-left: 58px"
                  >
                  </el-button>
                </el-tooltip>
              </template>
              <template>
                <el-tooltip content="修改" placement="bottom">
                  <el-button
                   @click="handleButtons(55)"
                    type="primary"
                    icon="el-icon-edit"
                    size="mini"
                  >
                  </el-button>
                </el-tooltip>
                <el-tooltip content="删除" placement="bottom">
                  <el-button
                    @click="dialogAdd"
                    type="danger"
                    icon="el-icon-delete"
                    size="mini"
                  >
                  </el-button>
                </el-tooltip>
              </template>
            </el-table-column>
          </el-table>
          <el-row style="margin-bottom: 5px;margin-top:10px;"
            >换货列表
            <el-button
              style="float: right; margin-left: 15px"
              type="primary"
              @click="handleButtons(3)"
              icon="el-icon-plus"
              size="small"
              >添加</el-button
            ></el-row
          >
          <el-table
            ref="multipleTable"
            stripe
            :data="tableDataHh"
            :show-summary="true"
            border
            row-class-name="tableRow"
            header-row-class-name="tableHeader"
            :highlight-current-row="true"
            @row-dblclick="handleButtons(3)"
            style="width: 100%;height:auto; border-top: 1px solid #c5c5c5"
          >
            <el-table-column type="selection" width="55"> </el-table-column>
            <el-table-column prop="id" label="序号" sortable width="80">
            </el-table-column>
            <el-table-column prop="image" label="图片" width="120">
              <template scope="scope">
                <img
                  :src="scope.row.image"
                  width="40"
                  height="40"
                  class="head_pic"
                />
              </template>
            </el-table-column>
            <el-table-column prop="wpmc" label="物品名称" width="120">
            </el-table-column>
            <!-- <el-table-column prop="wppl" label="物品品类" sortable width="120">
            </el-table-column> -->
            <el-table-column prop="order_id" label="订单号" width="120">
            </el-table-column>
            <el-table-column prop="kh" label="款号" width="120">
            </el-table-column>
            <el-table-column prop="number" label="数量" width="120">
            </el-table-column>
            <el-table-column prop="hz" label="货重" width="120">
            </el-table-column>
            <el-table-column prop="gjspl" label="贵金属"> </el-table-column>
            <el-table-column prop="zs" label="主石" width="120">
            </el-table-column>
            <el-table-column prop="fs" label="副石" width="120">
            </el-table-column>
            <el-table-column prop="bzh" label="包装盒" width="120">
            </el-table-column>
            <el-table-column prop="zs" label="证书" width="120">
            </el-table-column>
            <el-table-column prop="price" label="价格(元)"> </el-table-column>
            <el-table-column width="80">
              <template slot="header">
                <el-tooltip content="删除选中" placement="bottom">
                  <el-button
                    @click="dialogAdd"
                    type="danger"
                    icon="el-icon-delete"
                    size="mini"
                    
                  >
                  </el-button>
                </el-tooltip>
              </template>
              <template>
                <!-- <el-tooltip content="查看" placement="bottom">
                  <el-button
                    @click="handleButtons(22)"
                    type="primary"
                    icon="el-icon-view"
                    size="mini"
                  >
                  </el-button>
                </el-tooltip> -->
                <el-tooltip content="删除" placement="bottom">
                  <el-button
                    @click="dialogAdd"
                    type="danger"
                    icon="el-icon-delete"
                    size="mini"
                  >
                  </el-button>
                </el-tooltip>
              </template>
            </el-table-column>
          </el-table>
        </el-tab-pane>
        <el-tab-pane label="操作记录" name="third"> </el-tab-pane>
        <el-tab-pane label="附件" name="bs">
        
        </el-tab-pane>
      </el-tabs>
      <div slot="footer" class="dialog-footer">
        <!-- <el-dropdown style="float: left; margin-left: 15px">
          <el-button>
            关联数据<i class="el-icon-arrow-down el-icon--right"></i>
          </el-button>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>设计图</el-dropdown-item>
            <el-dropdown-item>客来石</el-dropdown-item>
            <el-dropdown-item>客来金</el-dropdown-item>
            <el-dropdown-item>其它...</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
        <el-button
          style="float: left; margin-left: 15px"
          @click="handleButtons(3)"
          icon="el-icon-search"
          >添加产品</el-button
        > -->
        <el-button type="primary" icon="el-icon-printer"></el-button>
        <el-button @click="dialogClose">取 消</el-button>
        <el-button type="primary" @click="dialogAdd">确定</el-button>
      </div>
    </el-dialog>


    <dialog-kochufeiyong-add
      v-bind:dialogshow="dialogKochufeiyongAdd"
      @dialog_close="dialog_close_kochufeiyong_add"
    ></dialog-kochufeiyong-add>
    <dialog-search-customer
      v-bind:dialogshow="dialogSearchCustomer"
      @dialog_close="dialog_close_search_customer"
    ></dialog-search-customer>
    <dialog-search-product
      v-bind:dialogshow="dialogSearchProduct"
      @dialog_close="dialog_close_search_product"
    ></dialog-search-product>
    <dialog-product-info-returns
      v-bind:dialogshow="dialogProductInfo"
      @dialog_close="dialog_close_product_info"
    ></dialog-product-info-returns>
  </div>
</template>

<style scoped>
#customerDialog .el-form-item {
  width: 45%;
  float: left;
  margin-bottom: 5px;
}

#customerDialog .el-form-item:nth-child(odd) {
  float: right;
}

.el-dialog__body,
.el-form {
  overflow: hidden;
}

#customerDetail .el-form {
  border: 1px solid #c5c5c5;
  padding: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#form-returns .item-w230 .el-form-item {
  width: 230px;
  float: left;
  margin-bottom: 5px;
}
#form-returns .el-row {
  margin-bottom: 0px;
}
#form-returns.el-form--label-top .el-form-item__label {
  padding-bottom: 0px;
}
#form-returns .el-divider--horizontal {
  margin: 5px 0;
}

.td-lable,
.td-info {
  display: inline-table;
  vertical-align: -webkit-baseline-middle;
}

.td-lable {
  text-align: right;
  width: 100px;
}

.td-info {
  margin-left: 20px;
}

ul {
  list-style-type: none;
}

ul span {
  display: inline-table;
  min-width: 200px;
}

.tabs-table td {
  height: 50px;
  border-bottom: 1px solid #dcdfe6;
}
.customer-tabs .el-tab-pane {
  height: 400px;
  overflow: auto;
  padding: 20px;
}
</style>

<script>
module.exports = {
  methods: {
    dialogAdd() {
      this.$confirm("是否继续操作?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          this.$message({
            type: "success",
            message: "操作成功!",
          });
        })
        .catch(() => {
          this.$message({
            type: "info",
            message: "已取消",
          });
        });
    },
    dialogClose() {
      this.$emit("dialog_close", 1);
    },
    clickfullscreen() {
      this.fullscreen = !this.fullscreen;
    },
    dialog_close_search_customer(val) {
      console.log(val);
      this.dialogSearchCustomer = false;
    },
    dialog_close_search_product(val) {
      console.log(val);
      this.dialogSearchProduct = false;
    },
    dialog_close_product_info(val) {
      console.log(val);
      this.dialogProductInfo = false;
    },
    dialog_close_kochufeiyong_add(val) {
      console.log(val);
      this.dialogKochufeiyongAdd = false;
    },

    handleButtons(val) {
      console.log(33);
      switch (val) {
        case 1:
          this.dialogSendMessage = "true";
          console.log(this.dialogSendMessage);
          break;
        case 2:
          console.log(333);
          this.dialogSearchCustomer = "true";
          console.log(this.dialogSearchCustomer);
          break;
        case 3:
          console.log(333);
          this.dialogSearchProduct = "true";
          console.log(this.dialogSearchProduct);
          break;

        case 10:
          console.log(333);
          this.dialogCustomerInfo = "false";
          this.dialogCustomerGenji = "true";
          console.log(this.dialogCustomerGenji);
          break;
        case 22: //编辑报价
          console.log("报价");
          this.dialogProductInfo= "true";
          console.log(this.dialogProductInfo);
          break;
         case 55:
          this.dialogKochufeiyongAdd = "true";
          console.log(this.dialogKochufeiyongAdd);
          console.log('kochufeiyong');
          break;
      }
    },
    addData() {
      this.tableDatas.push({
        edit: true,
      });
    },
    //确认添加
    confirmAdd(row) {
      row.edit = false;
    },
    //修改
    editData(row) {
      row.edit = true;
    },
    //删除
    deleteData(row, index) {
      this.tableDatas.splice(index, 1);
    },
  },
  props: ["dialogshow"],
  data() {
    return {
      dialogKochufeiyongAdd:false,
      dialogProductInfo:false,
      fullscreen: false,
      dialogBaojiaEdit: false,
      activeName: "first",
      dialogSendMessage: false,
      dialogCustomerInfo: false,
      dialogCustomerGenji: false,
      // dialogshow:false,
      dialogSendMessage: false,
      // dialogCustomerInfo: false,
      // dialogCustomerGenji: false,
      dialogSearchCustomer: false,
      dialogSearchProduct: false,
      Sendmssages: {
        address: "",
        customercate: "",
        cate: "",
        nickname: "",
        creditrank: "",
        name: "",
      },
      tableDataTh: [
        {
          id: "1",
          create_time: "2016-05-02 08:08:08",
          update_time: "2016-05-02 08:08:08",
          image: "/public/images/eh1.jpg",
          kfmc: "某珠宝公司",
          order_id: "201010001A",
          wpmc: "戒指",
          number: "1",
          hz: "20",
          kh: "WERWQE123",
          wpdj: "A类",
          dw: "件",
          bzh: "有",
          zs: "有",
          gjspl: "铂金999.99%",
          fsys: "红",
          zsysf:"-100",
          bzhysf:"-100",
          wxf:"-1000",
          price: "100000",
          pricebcj: "-300",
          pricejs: "98800",
        },
        {
          id: "2",
          create_time: "2016-05-02 08:08:08",
          update_time: "2016-05-02 08:08:08",
          image: "/public/images/eh1.jpg",
          kfmc: "某珠宝公司",
          order_id: "201010001A",
          wpmc: "戒指",
          number: "1",
          hz: "20",
          kh: "WERWQE123",
          dw: "件",
          bzh: "--",
          zs: "--",
          gjspl: "24K黄金",
          fsys: "红",
          price: "990000",
          pricejs: "990000",
        },
        {
          id: "3",
          create_time: "2016-05-02 08:08:08",
          update_time: "2016-05-02 08:08:08",
          image: "/public/images/eh1.jpg",
          kfmc: "某珠宝公司",
          order_id: "201010001A",
          wpmc: "戒指",
          number: "1",
          hz: "20",
          kh: "WERWQE123",
          dw: "件",
          bzh: "有",
          zs: "有",
          gjspl: "铂金999.99%",
          fsys: "红",
          price: "8000",
        },
      ],
      tableDataHh: [
        {
          id: "1",
          create_time: "2016-05-02 08:08:08",
          update_time: "2016-05-02 08:08:08",
          image: "/public/images/eh1.jpg",
          kfmc: "某珠宝公司",
          order_id: "201010001A",
          wpmc: "戒指",
          number: "1",
          hz: "20",
          kh: "WERWQE123",
          wpdj: "A类",
          dw: "件",
          bzh: "有",
          zs: "有",
          gjspl: "铂金999.99%",
          fsys: "红",
          price: "100000",
        },
        {
          id: "2",
          create_time: "2016-05-02 08:08:08",
          update_time: "2016-05-02 08:08:08",
          image: "/public/images/eh1.jpg",
          kfmc: "某珠宝公司",
          order_id: "201010001A",
          wpmc: "戒指",
          number: "1",
          hz: "20",
          kh: "WERWQE123",
          dw: "件",
          bzh: "--",
          zs: "--",
          gjspl: "24K黄金",
          fsys: "红",
          price: "990000",
        },
        {
          id: "3",
          create_time: "2016-05-02 08:08:08",
          update_time: "2016-05-02 08:08:08",
          image: "/public/images/eh1.jpg",
          kfmc: "某珠宝公司",
          order_id: "201010001A",
          wpmc: "戒指",
          number: "1",
          hz: "20",
          kh: "WERWQE123",
          dw: "件",
          bzh: "有",
          zs: "有",
          gjspl: "铂金999.99%",
          fsys: "红",
          price: "8000",
        },
      ],
      formData: {
        field101: null,
        field3000: true,
        datetime:'',
      },
      rules: {
        field101: [],
        field3000: [],
        datetime:[],
      },
      field3000Options: [
        {
          label: "是",
          value: 1,
        },
      ],

      customerstaffs: [
        { typename: "员工一" },
        { typename: "员工二" },
        { typename: "员工三" },
        { typename: "员工四" },
      ],
      changeReason: [
        { typename: "原因一" },
        { typename: "原因二" },
        { typename: "原因三" },
        { typename: "原因四" },
      ],
      pickerOptions: {
        shortcuts: [
          {
            text: "今天",
            onClick(picker) {
              picker.$emit("pick", new Date());
            },
          },
          {
            text: "昨天",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24);
              picker.$emit("pick", date);
            },
          },
          {
            text: "一周前",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", date);
            },
          },
        ],
      },
      customer: {
        name: "",
        customercode: "",
        customerstatus: "",
        customercate: "",
        creditrank: "",
        creditline: "",
        capital: "",
        annualsales: "",
        bank: "",
        certificateno: "",
        address: "",
        area: "",
        brand: "",
        bankaccount: "",
        trademark: "",
        website: "",
        lperson: "",
        lphone: "",
        contacts: "",

        phone: "",
        phonenum: "",
        weixin: "",
        email: "",
        fax: "",
        resource: "",
        requirement: "",
        ordercountmonth: "",
        purchaseamountmonth: "",
        ordercountyear: "",
        purchaseamountyear: "",
        customerstaffname: "",
        customerstaffcode: "",
        operator: "",
        insertime: "",
        remark: "",
        jsfs: "",
        chzt: "",
        jszt: "",
        shzt: "",
        kfsh:"",
      },
     thhyy: [
        { id: 1, typename: "公司原因" },
        { id: 2, typename: "客户原因" },
        { id: 3, typename: "供应商原因" },
        { id: 4, typename: "其它原因" },
      ],
      jsfs: [
        { id: 1, typename: "月结" },
        { id: 2, typename: "现结" },
        { id: 3, typename: "预付全款" },
        { id: 4, typename: "分期付款" },
        { id: 5, typename: "货到付款" },
        { id: 6, typename: "其它" },
      ],
      chzt: [
        { id: 1, typename: "待出库" },
        { id: 2, typename: "已出库待发货" },
        { id: 3, typename: "已发货" },
        { id: 4, typename: "待签收" },
        { id: 5, typename: "已确认收货" },
        { id: 5, typename: "申请退换货" },
        { id: 5, typename: "退换货确认" },
      ],
      jszt: [
        { id: 1, typename: "未结算" },
        { id: 1, typename: "部分结算" },
        { id: 2, typename: "已结算" },
      ],
      shzt: [
        { id: 1, typename: "待审核" },
        { id: 2, typename: "已审核" },
        { id: 3, typename: "未通过" },
       
      ],
      crmsclientStatic: [
        { id: 1, typename: "A级" },
        { id: 2, typename: "B级" },
        { id: 3, typename: "C级" },
        { id: 4, typename: "D级" },
      ],

      scheduleType: [
        { typename: "业务拓展" },
        { typename: "订单跟进" },
        { typename: "料/款跟进" },
      ],

      cates: [{ typename: "意向客户" }, { typename: "老客户" }],

      crmsclientRank: [
        { typename: "A类" },
        { typename: "B类" },
        { typename: "C类" },
        { typename: "D类" },
      ],
    };
  },
  components: {
    "dialog-tools": "url:../tools/dialog-tools.vue",
    "dialog-search-customer": "url:./search-customer.vue",
    "dialog-search-product": "url:./search-product.vue",
    "dialog-product-info-returns": "url:./product-info-returns.vue",
    "dialog-kochufeiyong-add": "url:./kochufeiyong-add.vue",
    //   'genjin-jilu': 'url:../genjin-jilu.vue',
    //   'customer-genji': 'url:../customer-genji.vue',
  },
};
</script>
